Security News
Python Overtakes JavaScript as Top Programming Language on GitHub
Python becomes GitHub's top language in 2024, driven by AI and data science projects, while AI-powered security tools are gaining adoption.
@babel/plugin-syntax-jsx
Advanced tools
The @babel/plugin-syntax-jsx npm package allows Babel to parse JSX syntax. JSX is a syntax extension for JavaScript, commonly used with React to describe what the UI should look like. By enabling this plugin, Babel can understand and process JSX syntax, but it does not transform it. To transform JSX, you would need to use another plugin like @babel/plugin-transform-react-jsx.
JSX Parsing
This plugin allows Babel to parse JSX syntax like the one in the code sample, which represents a React element.
const element = <div>Hello, world!</div>;
This package not only parses JSX syntax but also transforms it into React.createElement calls, making it suitable for use in a React application.
This is a Babel preset for all React plugins, including JSX syntax parsing and transformation. It is a more comprehensive package for React development.
Similar to the JSX transformation plugin for React, this plugin is tailored for Vue.js and transforms JSX into Vue.js render functions.
Allow parsing of jsx
See our website @babel/plugin-syntax-jsx for more information.
Using npm:
npm install --save-dev @babel/plugin-syntax-jsx
or using yarn:
yarn add @babel/plugin-syntax-jsx --dev
v7.25.9 (2024-10-22)
babel-parser
, babel-template
, babel-types
syntacticPlaceholders
mode (@liuxingbaoyu)babel-helper-compilation-targets
, babel-preset-env
ClassAccessorProperty
to prevent the no-undef
rule (@victorenator)babel-parser
, babel-types
VISITOR_KEYS
etc. faster to access (@liuxingbaoyu)FAQs
Allow parsing of jsx
The npm package @babel/plugin-syntax-jsx receives a total of 20,500,819 weekly downloads. As such, @babel/plugin-syntax-jsx popularity was classified as popular.
We found that @babel/plugin-syntax-jsx demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Python becomes GitHub's top language in 2024, driven by AI and data science projects, while AI-powered security tools are gaining adoption.
Security News
Dutch National Police and FBI dismantle Redline and Meta infostealer malware-as-a-service operations in Operation Magnus, seizing servers and source code.
Research
Security News
Socket is tracking a new trend where malicious actors are now exploiting the popularity of LLM research to spread malware through seemingly useful open source packages.